﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data;
namespace QUANLIHOCSINH
{
    public partial class FrmThuNGhiem : Form
    {
        private SqlConnection conn;
        public FrmThuNGhiem()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string strConnection = "Server=MICROSOF-89AF53;Database=QuanLiHocSinh;Integrated Security = True";
            
                 this.conn = new SqlConnection(strConnection);
                 try
                 {
                     this.conn = new SqlConnection(strConnection);
                     this.conn.Open();
                     MessageBox.Show("thanh cong");
                 }
                 catch (Exception ex)
                 {
                     MessageBox.Show("Lo" + ex.Message);
                 }
        }

        private void FrmThuNGhiem_Load(object sender, EventArgs e)
        {

        }
    }
}
